package com.orphan.audit.dao;

import com.orphan.audit.po.OrderCheck;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.orphan.audit.po.SupplierCheck;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wdn
 * @since 2021-07-15
 */
@Mapper
public interface OrderCheckMapper extends BaseMapper<OrderCheck> {

    @Results(id = "OrderCheckMap",value = {
            @Result(column = "t_id",property = "tId",id = true),
            @Result(column = "t_orderId",property = "tOrderid"),
            @Result(column = "t_userId",property = "tUserid"),
            @Result(column = "t_totalMoney",property = "tTotalmoney"),
            @Result(column = "t_pay",property = "tPay"),
            @Result(column = "t_stuff",property = "tStuff"),
    })
    @Select("select * from t_order_check where t_id=#{tId}")
    OrderCheck getById(@Param("tId")Integer tId);

    @Select("select * from t_order_check")
    List<OrderCheck> findAll();

}
